<?php

class A {
    private $name='zhangsan';
}

$func = function (){
    return $this->name;
};

$bind_closure = Closure::bind($func, new A(), 'A');

echo $bind_closure;